package gui;

import javax.swing.SwingWorker;

import service.VareService;

public class UpdateWorker extends SwingWorker<Void, Void> {
    private VareService service = VareService.getInstance();
    @Override
    protected Void doInBackground(){
        while (!this.isCancelled()){
            service.updateMellemvare();
            try {
                Thread.sleep(10000);
            } catch(InterruptedException ie) {
                
            }
        }
        return null;
    }

}
